$width: 1200px;

.sim-bg {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f0f2f5;
}

.top-nav {
  width: $width;
  margin: 10px auto;
  padding: 10px;
  overflow: none;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  text-align: center;

  a {
    display: inline-block;
    padding: 10px 15px;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;

    &:hover {
      text-decoration: none;
    }
  }
}

.sim {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  .wallpaper {
    height: 350px;
    background: url("../../../assets/img/wallpaper.jpg") no-repeat;
    background-position: top center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    .title {
      color: #fff;
      margin-bottom: 10px;
      font-size: 36px;
    }

    .description {
      text-align: center;
      color: #fff;
      margin-bottom: 10px;
    }
  }

  .wrapper {
    flex: 1;
    position: relative;
    width: $width;
    padding-bottom: 50px;
    margin: 0 auto;

    .sidebar {
      width: 180px;
      height: min-content;
      padding: 10px 0;
      padding-bottom: 0;
      text-align: center;
      float: left;
      background-color: #fff;
      box-shadow: 0 0 1px #ccc;

      &.fix {
        position: fixed;
        top: 10px;
      }

      .ripple-btn {
        padding: 10px 0;
        margin-bottom: 10px;
        cursor: pointer;
        border-radius: 5px;
        transition: .1s linear;
        user-select: none;
        font-weight: 500;

        &.active {
          color: #409eff;
          background-color: rgb(231, 241, 253);
        }
      }
    }

    .site-box {
      width: 990px;
      position: relative;
      background-color: #fff;
      margin-left: 30px;
      padding: 15px;
      float: right;

      .title {
        font-size: 18px;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        color: #3f51b5;
        font-weight: 500;
        display: flex;
        cursor: pointer;
      }

      ul {
        display: flex;
        flex-wrap: wrap;
      }

      li {
        position: relative;
        width: 225px;
        padding: 15px;
        margin: 20px 20px 0 0;
        transition: .1s ease-out;
        border: 1px solid #eee;
        overflow: hidden;
        border-radius: 3px;
        cursor: pointer;

        &:nth-child(4n) {
          margin-right: 0;
        }

        &:hover {
          box-shadow: 2px 2px 25px -5px rgba(0,0,0,.2);

          .mark {
            bottom: 0 !important;
          }
        }

        .icon {
          display: inline-block;
          width: 35px;
          height: 35px;
          vertical-align: middle;
          border-radius: 50%;
          pointer-events: none;
          border: 1px solid #eee;
          background-color: #fff;
        }
      }

      .url-box {
        height: 100%;

        .box-wrapper {
          display: flex;
        }

        .right {
          flex: 1;
          margin-left: 10px;
          font-size: 16px;
          font-weight: 600;
          color: #273a52;
          align-self: center;
        }

        .desc {
          margin-top: 8px;
          color: #4c5d73;
        }
      }
    }
  }

  .mark {
    z-index: 28;
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px 0 5px 0px;
    background: #fbfbfb;
    cursor: auto;
    display: flex;
    justify-content: center;
    align-content: center;
    transition: .1s linear;

    .button-box {
      width: 100%;
      text-align: center;
    }

    a {
      display: inline-block;
      position: relative;
      width: 50px;
      font-size: 12px;
      padding: 3px 0;
      border: none;
      background: #2db7f5;
      color: #fff;
      border-radius: 3px;
      overflow: hidden;

      &:not(:nth-last-child(1)) {
        margin-right: 10px;
      }

      &:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #000;
        opacity: 0;
      }

      &:active:after {
        opacity: .2;
      }
    }

    .zh {
      background: #26a2ff;
    }
  }
}

::ng-deep .sim-footer  {
  margin-bottom: 10px;

  & > * {
    color: #666;
  }
}
